Optimal. Leaf size=169 \[ \frac{1}{672} (277-42 x) \left (3 x^2+5 x+2\right )^{7/2}-\frac{(7446 x+589) \left (3 x^2+5 x+2\right )^{5/2}}{6912}+\frac{5 (6205-127338 x) \left (3 x^2+5 x+2\right )^{3/2}}{331776}+\frac{5 (1229315-2568342 x) \sqrt{3 x^2+5 x+2}}{2654208}-\frac{65251715 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{5308416 \sqrt{3}}+\frac{1625}{512} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.128263, antiderivative size = 169, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {814, 843, 621, 206, 724} \[ \frac{1}{672} (277-42 x) \left (3 x^2+5 x+2\right )^{7/2}-\frac{(7446 x+589) \left (3 x^2+5 x+2\right )^{5/2}}{6912}+\frac{5 (6205-127338 x) \left (3 x^2+5 x+2\right )^{3/2}}{331776}+\frac{5 (1229315-2568342 x) \sqrt{3 x^2+5 x+2}}{2654208}-\frac{65251715 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{5308416 \sqrt{3}}+\frac{1625}{512} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 814
Rule 843
Rule 621
Rule 206
Rule 724
Rubi steps
\begin{align*} \int \frac{(5-x) \left (2+5 x+3 x^2\right )^{7/2}}{3+2 x} \, dx &=\frac{1}{672} (277-42 x) \left (2+5 x+3 x^2\right )^{7/2}-\frac{1}{192} \int \frac{(2163+2482 x) \left (2+5 x+3 x^2\right )^{5/2}}{3+2 x} \, dx\\ &=-\frac{(589+7446 x) \left (2+5 x+3 x^2\right )^{5/2}}{6912}+\frac{1}{672} (277-42 x) \left (2+5 x+3 x^2\right )^{7/2}+\frac{\int \frac{(-355890-424460 x) \left (2+5 x+3 x^2\right )^{3/2}}{3+2 x} \, dx}{27648}\\ &=\frac{5 (6205-127338 x) \left (2+5 x+3 x^2\right )^{3/2}}{331776}-\frac{(589+7446 x) \left (2+5 x+3 x^2\right )^{5/2}}{6912}+\frac{1}{672} (277-42 x) \left (2+5 x+3 x^2\right )^{7/2}-\frac{\int \frac{(43354260+51366840 x) \sqrt{2+5 x+3 x^2}}{3+2 x} \, dx}{2654208}\\ &=\frac{5 (1229315-2568342 x) \sqrt{2+5 x+3 x^2}}{2654208}+\frac{5 (6205-127338 x) \left (2+5 x+3 x^2\right )^{3/2}}{331776}-\frac{(589+7446 x) \left (2+5 x+3 x^2\right )^{5/2}}{6912}+\frac{1}{672} (277-42 x) \left (2+5 x+3 x^2\right )^{7/2}+\frac{\int \frac{-2676363480-3132082320 x}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx}{127401984}\\ &=\frac{5 (1229315-2568342 x) \sqrt{2+5 x+3 x^2}}{2654208}+\frac{5 (6205-127338 x) \left (2+5 x+3 x^2\right )^{3/2}}{331776}-\frac{(589+7446 x) \left (2+5 x+3 x^2\right )^{5/2}}{6912}+\frac{1}{672} (277-42 x) \left (2+5 x+3 x^2\right )^{7/2}-\frac{65251715 \int \frac{1}{\sqrt{2+5 x+3 x^2}} \, dx}{5308416}+\frac{8125}{512} \int \frac{1}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx\\ &=\frac{5 (1229315-2568342 x) \sqrt{2+5 x+3 x^2}}{2654208}+\frac{5 (6205-127338 x) \left (2+5 x+3 x^2\right )^{3/2}}{331776}-\frac{(589+7446 x) \left (2+5 x+3 x^2\right )^{5/2}}{6912}+\frac{1}{672} (277-42 x) \left (2+5 x+3 x^2\right )^{7/2}-\frac{65251715 \operatorname{Subst}\left (\int \frac{1}{12-x^2} \, dx,x,\frac{5+6 x}{\sqrt{2+5 x+3 x^2}}\right )}{2654208}-\frac{8125}{256} \operatorname{Subst}\left (\int \frac{1}{20-x^2} \, dx,x,\frac{-7-8 x}{\sqrt{2+5 x+3 x^2}}\right )\\ &=\frac{5 (1229315-2568342 x) \sqrt{2+5 x+3 x^2}}{2654208}+\frac{5 (6205-127338 x) \left (2+5 x+3 x^2\right )^{3/2}}{331776}-\frac{(589+7446 x) \left (2+5 x+3 x^2\right )^{5/2}}{6912}+\frac{1}{672} (277-42 x) \left (2+5 x+3 x^2\right )^{7/2}-\frac{65251715 \tanh ^{-1}\left (\frac{5+6 x}{2 \sqrt{3} \sqrt{2+5 x+3 x^2}}\right )}{5308416 \sqrt{3}}+\frac{1625}{512} \sqrt{5} \tanh ^{-1}\left (\frac{7+8 x}{2 \sqrt{5} \sqrt{2+5 x+3 x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0914347, size = 123, normalized size = 0.73 \[ \frac{-6 \sqrt{3 x^2+5 x+2} \left (31352832 x^7-50015232 x^6-529784064 x^5-1167854976 x^4-1224844848 x^3-722869752 x^2-185981750 x-101435865\right )-353808000 \sqrt{5} \tanh ^{-1}\left (\frac{-8 x-7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right )-456762005 \sqrt{3} \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{9 x^2+15 x+6}}\right )}{111476736} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.006, size = 295, normalized size = 1.8 \begin{align*} -{\frac{5+6\,x}{96} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{7}{2}}}}+{\frac{35+42\,x}{6912} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{5}{2}}}}-{\frac{175+210\,x}{331776} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{3}{2}}}}+{\frac{175+210\,x}{2654208}\sqrt{3\,{x}^{2}+5\,x+2}}-{\frac{35\,\sqrt{3}}{15925248}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\,{x}^{2}+5\,x+2} \right ) }+{\frac{13}{28} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{7}{2}}}}-{\frac{65+78\,x}{72} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}}-{\frac{5525+6630\,x}{3456} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}-{\frac{111475+133770\,x}{27648}\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}}}-{\frac{679705\,\sqrt{3}}{165888}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}} \right ) }+{\frac{13}{16} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}}+{\frac{325}{192} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}+{\frac{1625}{512}\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}-{\frac{1625\,\sqrt{5}}{512}{\it Artanh} \left ({\frac{2\,\sqrt{5}}{5} \left ( -{\frac{7}{2}}-4\,x \right ){\frac{1}{\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.80572, size = 251, normalized size = 1.49 \begin{align*} -\frac{1}{16} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}} x + \frac{277}{672} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}} - \frac{1241}{1152} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} x - \frac{589}{6912} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} - \frac{106115}{55296} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} x + \frac{31025}{331776} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} - \frac{2140285}{442368} \, \sqrt{3 \, x^{2} + 5 \, x + 2} x - \frac{65251715}{15925248} \, \sqrt{3} \log \left (\sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2} + 3 \, x + \frac{5}{2}\right ) - \frac{1625}{512} \, \sqrt{5} \log \left (\frac{\sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}}{{\left | 2 \, x + 3 \right |}} + \frac{5}{2 \,{\left | 2 \, x + 3 \right |}} - 2\right ) + \frac{6146575}{2654208} \, \sqrt{3 \, x^{2} + 5 \, x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.48089, size = 494, normalized size = 2.92 \begin{align*} -\frac{1}{18579456} \,{\left (31352832 \, x^{7} - 50015232 \, x^{6} - 529784064 \, x^{5} - 1167854976 \, x^{4} - 1224844848 \, x^{3} - 722869752 \, x^{2} - 185981750 \, x - 101435865\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} + \frac{65251715}{31850496} \, \sqrt{3} \log \left (-4 \, \sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (6 \, x + 5\right )} + 72 \, x^{2} + 120 \, x + 49\right ) + \frac{1625}{1024} \, \sqrt{5} \log \left (\frac{4 \, \sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (8 \, x + 7\right )} + 124 \, x^{2} + 212 \, x + 89}{4 \, x^{2} + 12 \, x + 9}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29197, size = 211, normalized size = 1.25 \begin{align*} -\frac{1}{18579456} \,{\left (2 \,{\left (12 \,{\left (18 \,{\left (8 \,{\left (6 \,{\left (36 \,{\left (42 \, x - 67\right )} x - 25549\right )} x - 337921\right )} x - 2835289\right )} x - 30119573\right )} x - 92990875\right )} x - 101435865\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} + \frac{1625}{512} \, \sqrt{5} \log \left (\frac{{\left | -4 \, \sqrt{3} x - 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}{{\left | -4 \, \sqrt{3} x + 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}\right ) + \frac{65251715}{15925248} \, \sqrt{3} \log \left ({\left | -6 \, \sqrt{3} x - 5 \, \sqrt{3} + 6 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]